﻿using BCCommon.PaymentEnums;
using System.ComponentModel.DataAnnotations;

namespace BCDto.Common.Payment.Payment
{
    /// <summary>
    /// 检查支付结果请求
    /// </summary>
    public class CheckPaymentResultRequestDto
    {
        /// <summary>
        /// 支付渠道。
        /// </summary>
        [Display(Name = "付款渠道")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public PaymentChannelType PayChannelType{ get; set; }
        /// <summary>
        /// APP类型
        /// </summary>
        public SourceAppType AppType { get; set; }
        /// <summary>
        /// 系统类型
        /// </summary>
        public SourceOSType OSType { get; set; }
        /// <summary>
        /// 付款方
        /// </summary>
        public SourcePayerType Payer { get; set; }
        /// <summary>
        /// 系统支付记录号
        /// </summary>
        public long PaymentRecordId { get; set; }
        /// <summary>
        /// 阿里交易-APP支付结果模型
        /// </summary>
        public AlipayTradeAppPayResponseDto AppPayResponse { get; set; }
        /// <summary>
        /// 阿里交易返回对象转换成Map
        /// 应该是alipay_trade_app_pay_response，sign,sign_type 三个值
        /// </summary>
        public string AlipayTradeAppPayResponse { get; set; }
        /// <summary>
        /// 阿里支付签名
        /// </summary>
        public string Sign { get; set; }
        /// <summary>
        /// 签名方式
        /// </summary>
        public string SignType { get; set; }
    }
}
